package org.gdtc.storefront.service;

import org.gdtc.storefront.entity.Saleafter;
import org.gdtc.storefront.mapper.SaleafterMapper;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;


import java.util.List;


@RequestMapping("/SaleafterService")
public interface SaleafterService {
    @RequestMapping("/deleteByPrimaryKey")
    int deleteByPrimaryKey(Integer id);
    @RequestMapping("/insert")
    int insert(Saleafter record);
    @RequestMapping("/selectByPrimaryKey")
    Saleafter selectByPrimaryKey(Integer id);
    @RequestMapping("/selectAll")
    List<Saleafter> selectAll();
    @RequestMapping("/updateByPrimaryKey")
    int updateByPrimaryKey(Saleafter record);
    @RequestMapping("/QueryAllSalea")
    List<Saleafter> QueryAllSalea(@RequestParam("storeid") Integer storeid);
    @RequestMapping("/UpdSaleaState")
    int UpdSaleaState(@RequestParam("id") Integer id,
                      @RequestParam("storeid") Integer storeid,
                      @RequestParam("state") Integer state);
    @RequestMapping("/SelectUpdSalea")
    List<Saleafter>SelectUpdSalea(@RequestParam("storeid") Integer storeid,
                                  @RequestParam("id") Integer id);

    @RequestMapping("/QuerycommodityId")
    int QuerycommodityId(@RequestParam("id") Integer id);
    @RequestMapping("/QuerySaleaWhere")
    List<Saleafter> QuerySaleaWhere(@RequestParam("storeid") Integer storeid,
                                    @RequestParam("state") Integer state);
}
